package com.emip.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emip.bean.AlterLogBean;
import com.emip.dao.AlterLogDAO;
import com.emip.service.AlterLogService;


@Service("alertLogService")
public class AlterLogServiceImpl implements AlterLogService {

	@Autowired
	AlterLogDAO alterLogDAO;
	
	public AlterLogBean merge(AlterLogBean log) {
		return alterLogDAO.merge(log);
	}

	public List<AlterLogBean> findByDate(String startDate, String endDate,
			String type, String flag) {
		return alterLogDAO.findByDate(startDate, endDate, type, flag);
	}

	public List<AlterLogBean> getAll(String type, String flag) {
		return alterLogDAO.getAll(type, flag);
	}

}
